<template>
	<view class="my-card">
		<view class="my-header">
			<!-- 自定义头部 -->
			<my-header :isBack="false" hasBgc="transparent" title="我的名片" color='#ffffff'></my-header>
			<view class="header-main">
				<view class="main-content">
					<image class="main-img" src="../../static/imgs/my-card.png" mode=""></image>
					<view class="main">
						<view class="header-name">nickName</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 内容快 -->
		<view class="card-content">
			<view class="card-item" :myInfo="myInfo">
				<image class="item-img" src="../../static/imgs/my-card.png" mode=""></image>
				<view class="item-card" @tap="gom">名片</view>
			</view>
			<view class="card-item">
				<image class="item-img1" src="../../static/imgs/news.png" mode=""></image>
				<view class="item-card" @tap="gox">消息</view>
			</view>
			<view class="card-item">
				<image class=" item-img2" src="../../static/imgs/customer.png" mode=""></image>
				<view class="item-card" @tap="gohelp">客服及帮助</view>
			</view>
			<button type="primary" @click="tologin">登录</button>
		</view>
		<MyTabbar></MyTabbar>
	</view>
</template>

<script>
	import MyTabbar from '@/common/tabbar/my-tabbar.vue'
	import MyHeader from '@/common/my-header/my-header.vue'
	export default {
		data() {
			return {
				selected: 4,
				myInfo: null,
				params: {},

				avatarUrl: '../../static/imgs/weidenglu.png',
				nickName: "小鹿线"
			}
		},
		components: {
			MyTabbar,
			MyHeader
		},
		mounted() {

		},
		onShow() {

		},
		computed: {

		},
		methods: {
			tologin(){
				uni.navigateTo({
					url:'/pages/login/login'
				})
			},
			gom() {
				uni.showToast({
					title: '请入学!'
				})
			},
			gox() {
				uni.showToast({
					title: '等待开发中!'
				})
			},
			gohelp() {
				uni.navigateTo({
					url: '../consulting-help/consulting-help'
				})
			}
		}
	}
</script>

<style scoped>
	.my-card {
		width: 100vw;
		height: 100vh;
		background-color: #F3F4F6;
		overflow: hidden;
	}

	.my-header {
		background: url('../../static/zybg.png') no-repeat center center;
		width: 100vw;
		height: 400rpx;
	}

	/* 头部 */
	.header-main {
		width: 750rpx;
		height: 100%;
		padding: 0 50rpx;
		height: 162rpx;
		position: absolute;
		top: 154rpx;
		box-sizing: border-box;
	}

	.main-content {
		display: flex;
		align-items: center;
	}

	.main-img {
		width: 162rpx;
		height: 162rpx;
		border-radius: 50%;
	}

	.main {
		padding-left: 40rpx;
	}

	.header-name {
		height: 40rpx;
		font-size: 42rpx;
		font-family: SourceHanSansCN;
		font-weight: 400;
		color: #FFFFFF;
		padding-bottom: 40rpx;
	}

	/* 内容快 */
	.card-content {
		width: 750rpx;
		height: 100%;
		position: relative;
		top: -60rpx;
		padding: 0 40rpx;
		box-sizing: border-box;
	}

	.card-item {
		height: 110rpx;
		background-color: #FFFFFF;
		border-radius: 10rpx;
		margin-bottom: 30rpx;
		display: flex;
		align-items: center;
		padding-left: 37rpx;
		box-sizing: border-box;
	}

	.item-img {
		width: 36rpx;
		height: 29rpx;
	}

	.item-img1 {
		width: 31rpx;
		height: 36rpx;
	}

	.item-img2 {
		width: 28rpx;
		height: 36rpx;
	}

	.item-card {
		font-size: 28rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #464646;
		padding-left: 10rpx;
	}

	.finger {
		width: 50rpx;
		height: 50rpx;
		animation: fingerHandle 1s ease infinite both;
		transform: rotate(90deg);
	}

	.login {
		display: flex;
		width: 400rpx;

	}

	@keyframes fingerHandle {
		0% {
			transform: none;
		}

		70% {
			transform: scale3d(.8, .8, .8);
		}

		100% {
			transform: none;
		}
	}

	.mask {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 998;
		height: 100%;
		width: 100%;
		opacity: 0.7;
		background-color: #000;
		filter: alpha(opacity=70%);
	}
</style>